<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>
<div class="ibox-content">
    <form class="form-horizontal m-t" id="signupForm">
        <input id="userId" AUTOCOMPLETE="off" name="userId" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <input id="name" AUTOCOMPLETE="off" name="name" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">用户名：</label>
            <div class="col-sm-8">
                <input id="username" AUTOCOMPLETE="off" name="username" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">密码：</label>
            <div class="col-sm-8">
                <input id="password" AUTOCOMPLETE="off" name="password" class="form-control" type="password">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">部门：</label>
            <div class="col-sm-8">
                <input id="deptId" AUTOCOMPLETE="off" name="deptId" class="hidden"> <input id="deptName"
                                                                                           AUTOCOMPLETE="off"
                                                                                           name="deptName"
                                                                                           class="form-control"
                                                                                           type="text"
                                                                                           style="cursor: pointer;"
                                                                                           onclick="openDept()"
                                                                                           readonly="readonly"
                                                                                           placeholder="所属养殖户">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">E-mail：</label>
            <div class="col-sm-8">
                <input id="email" AUTOCOMPLETE="off" name="email" class="form-control" type="email">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态:</label>
            <div class="col-sm-8">
                <label class="radio-inline"> <input type="radio"
                                                    AUTOCOMPLETE="off" name="status" value="1"/> 正常
                </label> <label class="radio-inline"> <input type="radio"
                                                             AUTOCOMPLETE="off" name="status" value="0"/> 禁用
            </label>
            </div>
        </div>
        <input type="hidden" AUTOCOMPLETE="off" name="roleIds" id="roleIds">
        <div class="form-group">
            <label class="col-sm-3 control-label">角色</label>
            <div class="col-sm-8">
                <label th:each="role:${roles}" class="checkbox-inline">
                    <input AUTOCOMPLETE="off" name="role" type="checkbox" th:value="${role.roleId}"
                           th:text="${role.roleName}">
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-8 col-sm-offset-3">
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </form>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="js/appjs/sys/user/add.js">
</script>
</body>

</html>